<template>
	<view>
		<work v-if="PageCur=='work'"></work>
		<ucenter v-if="PageCur=='ucenter'"></ucenter> 
		<view class="cu-bar tabbar bg-white shadow foot">
			<view class="action" @click="NavChange" data-cur="work">
				<view class='cuIcon-cu-image'>
					<image :src="'/static/img/tabbar/basics' + [PageCur=='work'?'_cur':''] + '.png'"></image>
				</view>
				<view :class="PageCur=='work'?'text-green':'text-gray'">工作台</view>
			</view>
			<view class="action" @click="NavChange" data-cur="ucenter">
				<view class='cuIcon-cu-image'>
					<image :src="'/static/img/tabbar/about' + [PageCur == 'ucenter'?'_cur':''] + '.png'"></image>
				</view>
				<view :class="PageCur=='ucenter'?'text-green':'text-gray'">我的</view>
			</view>
			 
		</view>
	</view>
</template>

<script>
	export default {
		data() {
		return {
				PageCur: 'work'
			}
		},
		methods: {
			NavChange: function(e) {
				this.PageCur = e.currentTarget.dataset.cur
			}
		}
	}
</script>

<style>

</style>
